Cubical Categories for Higher-Dimensional Parametricity

نویسندگان

  • Patricia Johann
  • Kristina Sojakova
چکیده

Reynolds’ theory of relational parametricity formalizes parametric polymorphism for System F, thus capturing the idea that polymorphically typed System F programs always map related inputs to related results. This paper shows that Reynolds’ theory can be seen as the instantiation at dimension 1 of a theory of relational parametricity for System F that holds at all higher dimensions, including infinite dimension. This theory is formulated in terms of the new notion of a p-dimensional cubical category, which we use to define a p-dimensional parametric model of System F for any p ∈ N ∪ {∞}. We show that every p-dimensional parametric model of System F yields a split λ2-fibration in which types are interpreted as face mapand degeneracy-preserving cubical functors and terms are interpreted as face-map and degeneracy-preserving cubical natural transformations. We demonstrate that our theory is “good” by showing that the PER model of Bainbridge et al. is derivable as another 1-dimensional instance, and that all instances at all dimensions derive higher-dimensional analogues of expected results for parametric models, such as a Graph Lemma and the existence of initial algebras and final coalgebras. Finally, our technical development resolves a number of significant technical issues arising in Ghani et al.’s recent bifibrational treatment of relational parametricity, which allows us to clarify their approach and strengthen their main result. Once clarified, their bifibrational framework, too, can be seen as a 1-dimensional instance of our theory.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

A syntax for cubical type theory (draft)

In this paper we provide a syntax for the cubical set model of type theory [3]. We start by defining a heterogeneous equality as a logical relation in an extended context (section 1.1). This can be seen as a different presentation of parametricity for dependent types [1]. We investigate the higher dimensional structure induced by the logical relation in section 1.2. The relation defined so far ...

متن کامل

Towards a Cubical Type Theory without an Interval

Following the cubical set model of type theory which validates the univalence axiom, cubical type theories have been developed that interpret the identity type using an interval pretype. These theories start from a geometric view of equality. A proof of equality is encoded as a term in a context extended by the interval pretype. Our goal is to develop a cubical theory where the identity type is...

متن کامل

Cubical Sets and Trace Monoid Actions

This paper is devoted to connections between trace monoids and cubical sets. We prove that the category of trace monoids is isomorphic to the category of generalized tori and it is a reflective subcategory of the category of cubical sets. Adjoint functors between the categories of cubical sets and trace monoid actions are constructed. These functors carry independence preserving morphisms in th...

متن کامل

Cubical Sets are Generalized Transition Systems

We show in this article that \labelled" cubical sets (or Higher-Dimensional Automata) are a natural generalization of transition systems and asynchronous transition systems. This generalizes an older result of 14] which was only holding with precubical sets and subcat-egories of the classical (see 29]) categories of transition systems and asynchronous transition systems. This opens up new promi...

متن کامل

Higher categories, strings, cubes and simplex equations

Abstract. This survey of categorical structures, occurring naturally in mathematics, physics and computer science, deals with monoidal categories; various structures in monoidal categories; free monoidal structures; Penrose string notation; 2-dimensional categorical structures; the simplex equations of field theory and statistical mechanics; higher-order categories and computads; the (v,d)-cube...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • CoRR

دوره abs/1701.06244  شماره 

صفحات  -

تاریخ انتشار 2017